# To change this template, choose Tools | Templates
# and open the template in the editor.

class ConvertTool
  def initialize
    
  end
  def self.array_to_select_array(input,offset=0)
    output=[]
    idx=0+offset
    input.each do |i|
      output<<[i,idx]
      idx=idx+1
    end
    return output
  end
  def self.array_to_select_text_array(input)
    output=[]
    input.each do |i|
      output<<[i,i]
    end
    return output
  end
end
